import java.io.Serializable;

public class StringItem implements Serializable {

    private static final long serialVersionUID = 1L;

    private String value;
	
	private int refCount;

	public StringItem(String value) {
		this.value = value;
		this.refCount = 1;
	}
	
	public StringItem(String value, int refCount) {
	    this.value = value;
	    this.refCount = refCount;
	}
	
	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public int getRefCount() {
		return refCount;
	}

	public void setRefCount(int refCount) {
		this.refCount = refCount;
	}
	
	public void incRefCount() {
		this.refCount++;
	}
	
	public void incRefCount(int add) {
	    this.refCount += add;
	}
}
